home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: FW_CString
- Sent: 8/22/96 9:30 AM
- Received: 8/22/96 9:41 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >OK, this seems to be a way to get an object to draw in the highlight
- >color, but for highlighting text I want to be smart about the highlight
- >and I wnat to get the correct highlight background color, and the
- >corresponding foreground color. For example, if the user has Green as the
- >highlight color, that corresponds to green background with black text. If
- >they have black as the highlight color that corresponds to black
- >background with white text.
- >
- >Is there a way to get both the background and foreground colors correctly
- >for my highlighted text object?
- >
- >-Scott Adler
-
- What the highlight mode does on the mac is to swap pixels with the
- background color with pixels of the highlight color. It's a swap. So if
- your background color is white and your highlight color is blue then
- white pixel will be blue and blue pixel will be white. The background
- color in the ink is used to set the background color. In ODF 2 the ink's
- foreground color (with FW_kHilite) or the system highlight color (with
- FW_kSystemHilite) is used for the highlight color. That's all the
- highlight mode does on the Mac.
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-
-